home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000 November: Tool Chest / Dev.CD Nov 00 TC Disk 2.toast / pc / sample code / quicktime / quicktimeintro / play movie w.controller / application files / comapplication.h < prev    next >
Encoding:
Text File  |  2000-10-06  |  1.8 KB  |  90 lines

  1. //////////
  2. //
  3. //    File:        ComApplication.h
  4. //
  5. //    Contains:    Functions that could be overridden in a specific application.
  6. //
  7. //    Written by:    Tim Monroe
  8. //
  9. //    Copyright:    © 1999 by Apple Computer, Inc., all rights reserved.
  10. //
  11. //    Change History (most recent first):
  12. //
  13. //       <1>         11/05/99    rtm        first file; based on earlier sample code
  14. //       
  15. //////////
  16.  
  17. #pragma once
  18.  
  19.  
  20. //////////
  21. //
  22. // header files
  23. //
  24. //////////
  25.  
  26. #ifndef __QUICKTIMEVR__
  27. #include <QuickTimeVR.h>
  28. #endif
  29.  
  30. #ifndef __TEXTUTILS__
  31. #include <TextUtils.h>
  32. #endif
  33.  
  34. #ifndef __SCRIPT__
  35. #include <Script.h>
  36. #endif
  37.  
  38. #if TARGET_OS_MAC
  39. #ifndef __APPLEEVENTS__
  40. #include <AppleEvents.h>
  41. #endif
  42. #include "MacFramework.h"
  43. #endif
  44.  
  45. #if TARGET_OS_WIN32
  46. #include "WinFramework.h"
  47. #endif
  48.  
  49. #ifndef __QTUtilities__
  50. #include "QTUtilities.h"
  51. #endif
  52.  
  53. #include "ComResource.h"
  54.  
  55.  
  56. //////////
  57. //
  58. // constants
  59. //
  60. //////////
  61.  
  62.  
  63. //////////
  64. //
  65. // structures
  66. //
  67. //////////
  68.  
  69. // application-specific data
  70. typedef struct ApplicationDataRecord {
  71.     Boolean            fBogusField;
  72.     
  73. } ApplicationDataRecord, *ApplicationDataPtr, **ApplicationDataHdl;
  74.  
  75.  
  76. //////////
  77. //
  78. // function prototypes
  79. //
  80. //////////
  81.  
  82. #if TARGET_OS_MAC
  83. void                    QTApp_InstallAppleEventHandlers (void);
  84. PASCAL_RTN OSErr        QTApp_HandleOpenApplicationAppleEvent (const AppleEvent *theMessage, AppleEvent *theReply, unsigned long theRefcon);            
  85. PASCAL_RTN OSErr        QTApp_HandleOpenDocumentAppleEvent (const AppleEvent *theMessage, AppleEvent *theReply, unsigned long theRefcon);
  86. PASCAL_RTN OSErr        QTApp_HandlePrintDocumentAppleEvent (const AppleEvent *theMessage, AppleEvent *theReply, unsigned long theRefcon);
  87. PASCAL_RTN OSErr        QTApp_HandleQuitApplicationAppleEvent (const AppleEvent *theMessage, AppleEvent *theReply, unsigned long theRefcon);
  88. #endif    // TARGET_OS_MAC
  89.  
  90. // the other function prototypes are in the file MacFramework.h or WinFramework.h